<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.ld.com/shield/tags" prefix="shield"%>
<%@ taglib uri="http://www.ld.com/system/tags" prefix="system"%>
<%@ page trimDirectiveWhitespaces="true" %>
<fmt:setLocale value="zh_CN"/>
<%-- 权限判断 --%>
<shield:permssion type="button">
<table class="tab-list shield-table-odd">
	<col width="60">
	<col width="">
	<col width="">
	<col width="25%">
	<col width="100">
	<col width="">
	<col width="60">
    <tr>
    	<th class="taCenter">序号</th>
    	<th>名称</th>
	    <th>类</th>
	    <th>资源路径</th>
	    <th>是否加载</th>
	    <th>加载完成时间</th>
	    <th>进度</th>
    </tr>
<c:forEach var="model" items="${list }" varStatus="var">
   	<c:set var="load" value="${loadInfos[model.pluginInfo.className] }"/>
    <tr>
    	<td style="text-align: center;">${var.count }</td>
    	<td >${model.pluginInfo.name }</td>
	   	<td title="${model.pluginInfo.className }">${model.pluginInfo.classNameSimple }</td>
	   	<td title="${model.pluginInfo.resourcePath }">${model.pluginInfo.simpleResourcePath }</td>
	   	<td >
	   	<c:if test="${load == 'true' }">启用
	   	<input type="button" data-url="${ctxPathA }/system/plugin/updateLoad" shieldParams="{'name':'${model.pluginInfo.className }','load':0}" class="shieldAjax shield-icon disable" viewTitle="确定要停用该插件吗?" value="停用"/></c:if><c:if 
	   	test="${load != 'true' }"><span class="tips">停用</span>
	   	<input type="button" data-url="${ctxPathA }/system/plugin/updateLoad" shieldParams="{'name':'${model.pluginInfo.className }','load':1}" class="shieldAjax shield-icon enable" viewTitle="确定要启用该插件吗?" value="启用"/></c:if>
	   	</td>
	   	<td ><fmt:formatDate value="${model.pluginInfo.loadTime }" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>
        </td>
        <td class="red">完成</td>
    </tr>
</c:forEach>
</table>
</shield:permssion>
